package wxdb.index;

import wxdb.query.Constant;
import wxdb.record.RID;

/**
 * provide interface of traversing the B+ tree 
 * @author wy
 */

public interface Index {
	//move to before the first record found by (search)key 
	public boolean beforeFirst(Constant key);
	
	//move to the next record having the value of the (search)key
	public boolean next();
	
	public RID getRID();
	
	public boolean insert(Constant key, RID rid);
	
	public boolean delete(Constant key, RID rid);
	
}
